package cn.laowen.org.mapper;

import cn.laowen.basic.mapper.BasicMapper;
import cn.laowen.org.domain.Employee;


public interface EmployeeMapper extends BasicMapper<Employee> {

    //1.普通CRUD的方法通过继承公共mapper来实现

    //2.特殊的方法自己写

    /**
     * 根据username查询
     * @param username
     * @return
     */
    Employee loadByUserName(String username);

    /**
     * 根据shopid查询管理员信息
     * @param shopId
     * @return
     */
    Employee loadByShopId(Long shopId);
}
